import yForm from "@/y-ui/y-form/y-form.vue";
import layout from "@/pages/components/forms/layout/layout.vue";
import gSeal from '@/pages/components/g-seal/g-seal.vue';
import gBtns from '@/pages/components/g-btns/g-btns.vue';
export default {
	components: {
		gSeal,
		gBtns,
		yForm,
		layout,
	},
	data() {
		return {
			info: {
				daysOff: ""
			}
		}
	},
	computed: {
		columns() {
			return [{
					key: 'startTime',
					lable: '开始时间：',
					slot: "startTime",
					rules: {
						rule: ['required'],
						msg: ['请选择']
					}
				}, {
					key: 'endTime',
					lable: '结束时间：',
					slot: "endTime",
					rules: {
						rule: ['required'],
						msg: ['请选择']
					}
				},
				// {
				// 	hide: !this.info.daysOff,
				// 	type: 'yInput',
				// 	lable: `请假天数：`,
				// 	key: 'daysOff',
				// 	disabled: true,
				// 	hideClear: true,
				// 	unit: '天'
				// }, 
				{
					type: 'yTextarea',
					key: 'leaveRemark',
					lable: '事由：',
					rules: {
						rule: ['required'],
						msg: ['请填写']
					}
				}, {
					form_hide: true,
					key: "applicant",
					lable: "当前审核：",
				}
			];
		}
	},
}
